# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ftplib
pkgver=4.0
pkgrel=2
pkgdesc='A set of routines that implement the FTP protocol.'
url='http://nbpfaus.net/~pfau/ftplib/'
arch=('x86_64' 'aarch64')
license=('custom:unknown')
source=("http://nbpfaus.net/~pfau/$pkgname/$pkgname-$pkgver-1.tar.gz")
sha512sums=('6687a1717b21fa63562f8ceb7db0732c20c5e94f4a794bc03620be44971b6ef073710a68281e5b6ede3d02d6819351f7e7e74e60b043c5ae2a607c4e4254e411')

prepare() {
  cd "$pkgname-$pkgver-1/src"

  sed -i "s|/usr/local|$pkgdir/usr|g" Makefile
}

build() {
  cd "$pkgname-$pkgver-1/src"

  make
}

package() {
  cd "$pkgname-$pkgver-1/src"

  install -dm 755 "$pkgdir/usr/"{bin,include,lib}

  make install
}

